<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<%@ taglib prefix="onein" uri="http://www.onein.cn/jsp/taglib"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>分享行动指南 | 万应教育</title>
<jsp:include page="/WEB-INF/inc/meta.jsp"/>
<link href='<onein:url value="/styles/all.css"/>' type="text/css" rel="stylesheet" />
<script src="<onein:url value="/scripts/shareaction.js"/>" type=text/javascript></script>
<script src="<onein:url value="/scripts/jquery.js"/>" type="text/javascript"></script>
</head>

<body>
<div class="lockBobyDiv" id="lockUserActionBodyDivId" style="display:none;"></div>
<div class="popUpWrap" id="popUpWrapInsideId" style="display:none;">
<div class="shadow1">
<div class="shadow2">
  <div class="popUpWrapInside">
      <img src="<onein:url value="/images/icon_close.gif" />" class="cancelPop" onclick="closeShareWin()" title="关闭"/>
      <div class="bold">分享行动指南链接给朋友：</div>        
      <div><input type="text" id="shareActionContentId" size="75" value="${shareUrl}" onmouseover="this.select();" readonly="readonly" style="height:23px;border:1px solid #999999;font-size:14px;vertical-align: middle;"/></div>
      <div style="margin-left:155px;margin-top:10px;" class="popBtBottom">
          <a href="javascript:void(0);" class="botton1" onclick="copyShareUrl();"><span>复制链接粘贴到QQ、MSN或论坛</span></a>
      </div>
      <br/>
      <hr style="border:1px #cccccc dotted;width:100%"/>
      <div class="bold">或者发送行动指南邮件给朋友(多个邮箱用 ; 隔开):</div>
      <div>
        <input type="text" id="userInputEmail" size="75" style="height:23px;border:1px solid #999999;font-size:14px;vertical-align:middle;"/>
      </div>
      <div class="popBtBottom">
          <a href="javascript:void(0);" class="botton1" onclick="sendMail('<onein:url value="/share/sendMail.json" />')"><span>发送邮件</span></a>
      </div>
      <div class="ca"></div>
  </div>
</div>
</div>
</div>
    <jsp:include page="/WEB-INF/inc/header.jsp"/>
    <jsp:include page="/WEB-INF/inc/menu.jsp"/>
     <div id="bodyWrap">
        <div class="leftWrap2">   
            <div class="mt11">
                <div class="commonContentTopWrap5"><span><a></a></span></div>
                    <div class="commonContentMidWrap5" style="font-size:13px;">
                      <h2 style="border-bottom:1px #cccccc dotted;">朋友的信息</h2>
                        <p style="font-size:14px;">你的朋友和要把他(她)的育儿心得和你一起分享～～</p>
                        <p style="margin-top:7px;">
                          <strong>宝宝昵称：</strong>
                          <c:choose>
					        <c:when test="${user.nickName != null and fn:length(user.nickName) > 0}">
					            <span class="textRed">${user.nickName }</span>
					        </c:when>
					        <c:otherwise>宝宝
					        </c:otherwise>
					      </c:choose>
                         </p>
                         <p style="margin-top:7px;">
                           <strong>宝宝生日：</strong>
                           <span class="textRed">
                             <fmt:formatDate value="${user.birthday }" pattern="yyyy年MM月dd日"/>
                           </span>
                         </p>
                         <p style="margin-top:7px;">
                           <strong>上次登录：</strong>
                           <span class="textRed">
                             <fmt:formatDate value="${user.lastLogin }" pattern="yyyy年MM月dd日"/>
                           </span>
                         </p>                          
                    </div>
                 <div class="commonContentBottomWrap5"><span><a></a></span></div>
   			</div>
            <div>
                <div class="commonContentTopWrap5"><span><a></a></span></div>
                    <div class="commonContentMidWrap5">
                      <h2>最新热门育儿文章</h2>
                      <ul class="textListBig ml11" style="margin-top:10px;">
                         <c:forEach var="content" items="${contents}">
                           <c:choose>
                                            <c:when test="${fn:length(content.title) > 11}">
                                              <li><a title="${content.title }" class="indexSctionTextDetail" target="_blank" href="<onein:url value="/learn/content/${content.id}.jhtml"/>" ><c:out value="${fn:substring(content.title, 0, 11)}..." /></a></li>
                                            </c:when>
                                            <c:otherwise>
                                              <li><a title="${content.title }" class="indexSctionTextDetail" target="_blank" style="font-size:14px;line-height:24px;" href="<onein:url value="/learn/content/${content.id}.jhtml"/>" >${content.title}</a></li>
                                            </c:otherwise>
                                        </c:choose>
                         </c:forEach>
                      </ul>
                      <div class="CommonMore" style="margin-top:10px;"><a title="进入育儿百科" target="_blank" href="<onein:url value="/learn"/>">更多育儿资讯...</a></div>
                    </div>                 
                 <div class="commonContentBottomWrap5"><span><a></a></span></div>
   			</div>
        </div>
        <div class="personalRightWrap">
   
		     <div class="PersonalCenterContentWrap" onclick="extendOneDivOne();">
            	<div class="setWidthAll">
                    <div class="commonContentTopWrap5"><span><a></a></span></div>
                        <div class="commonContentMidWrap5">
                 			<div class="setHeightWarpShareAction" >
                 			    推广内容~~~
                            </div>                            
                             
                
               			</div>
                        <div class="commonContentBottomWrap5"><span><a></a></span></div>
                </div>
          </div>
          
          <div class="PersonalCenterContentWrap">
            <div class="setWidthAll">
              <div class="commonContentTopWrap5"><span><a></a></span></div>
              <div class="commonContentMidWrap5">
                <div class="setHeightWarp">
                  <div class="dailySatu"><img src="<onein:url value="/images/icon_Warning.gif"/>" /></div>
                  <c:if test="${userAction.actionResult == 1}">
                 	 <div class="dailySatu"><img src="<onein:url value="/images/icon_done.gif"/>" /></div>
                  </c:if>
                  
                  <div class="CanlendarLeft">
                    <ul>
                      <li class="icon">
                        <div id="onediv_two_date" class="date">${userAction.date }</div>
                        <div id="onediv_two_week" class="week">${userAction.week }</div>
                      </li>
                      <li id = "onediv_two_introtext" class="Content setTextWidth">${userAction.introText } </li>
                    </ul>
                  </div>
                   <div class="functionIconWrap">
                                    <ul onclick="shareContent()">
                                    	<li><a href="javascript:void(0);"><img src="<onein:url value="/images/icon_share.gif"/>" border="0" /></a></li>
                                        <li><a href="javascript:void(0);">分享朋友</a></li>
                                    </ul>
                                    <!-- ul>
                                    	<li><a href="javascript:void(0);"><img src="<onein:url value="/images/icon_blog.gif"/>" border="0" /></a></li>
                                        <li><a href="javascript:void(0);">发布博客</a></li>
                                    </ul -->
                                </div>
                  <div class="ca"></div>
                </div>
                <div id="onediv_two_info" class="setWidthAll" style="margin-top: 10px;">
                  <div class="dailyTabs">
                    <ul class="tabs">
                      <li><a href="javascript:void(0);" id="onedive_two_action" onclick="menuOneDivTwo('action')" class="tabsSelected"><span>行动指南</span></a></li>
                      <li><a href="javascript:void(0);" id="onedive_two_read" onclick="menuOneDivTwo('read')" class="tabsUnselected"><span>每日必读</span></a></li>
                      <li><a href="javascript:void(0);" id="onedive_two_tree" onclick="menuOneDivTwo('tree')" class="tabsUnselected" <c:if test="${shareAction.shareActionBaby == false }">style="display:none"</c:if>><span>成长日志</span></a></li>
                    </ul>
                    <div id="onedive_two_action_content" class="commonContent6dailyactionShareAction">
	                    <div class="contentTextAreaShareAction">
	                     ${userAction.fullText }
	                    </div>
                    </div>
                    <div id="onedive_two_read_content" class="commonContent6dailyactionShareAction" style="display:none">
                        <div class="contentTextAreaShareAction">
                         ${userAction.dailyNote }
                        </div>        
                    </div>
                   
                    <div id="onedive_two_tree_content" class="commonContent6dailyactionShareAction" style="display:none">
			           <div class="contentTextAreaShareAction" >${userAction.babyDaily }</div>
			        </div> 
                  </div>
                  <div class="ca"></div>
                </div>
              </div>
              <div class="commonContentBottomWrap5"><span><a></a></span></div>
            </div>
          </div>
          </div>
          </div>
    <jsp:include page="/WEB-INF/inc/footer.jsp"/>
    <jsp:include page="/WEB-INF/inc/shareJs.jsp"/>
</body>
</html>